﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Think.Lenovo.Com.Models
{
    /// <summary>
    /// 角色实体
    /// </summary>
    public class RoleModel
    {
        /// <summary>
        /// 自增主键Id
        /// </summary>
        
        public int Id { set; get; }

        /// <summary>
        /// 角色编码
        /// </summary>
         [StringLength(4,ErrorMessage="角色编码不能超过4位")]
        public String Code { set; get; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(10,ErrorMessage="角色名称不能超过10位")]
        public String Name { set; get; }

        /// <summary>
        /// 角色排序序号
        /// </summary>
        public int Seq { set; get; }
    }
}
